#ifndef __CUSTOMER_H__
#define __CUSTOMER_H__

/* Type define -------------------------------------------------------- */


/* common define -------------------------------------------------------- */
#define SYS_PUB_VERSION		1
#define SYS_SUB_VERSION		3
#define SYS_CFG_VERSION		2


/* Hw config  -------------------------------------------------------- */
#define UCFG_I2C0_ENABLE					0
#define UCFG_I2C0_NAME						"I2C0"
#define UCFG_I2C0_CLK_PORT               	IO_PORTA_11
#define UCFG_I2C0_DAT_PORT               	IO_PORTA_10   
#define UCFG_I2C0_DELAY_CNT              	20   

#define UCFG_IIS_SAMPLE_RATE		16000
#define UCFG_IIS_CH0_EN				1
#define UCFG_IIS_CH1_EN				0
#define UCFG_IIS_MODE				0	//0：master  1：slaver

#define UCFG_SPI0_ENABLE					0
#define UCFG_SPI0_NAME						"SPI0"
#define UCFG_SPI0_CLK_PORT               	IO_PORTA_09
#define UCFG_SPI0_DI_PORT               	IO_PORTA_07   
#define UCFG_SPI0_DO_PORT               	IO_PORTA_06  
#define UCFG_SPI0_BAUDRATE               	(15000000UL)  

/* LED config -------------------------------------------------------- */



/* Button config -------------------------------------------------------- */

/* Long Press Power On -------------------------------------------------------- */

/* Mesh Config ----------------------------------------------------- */


/* Battery Config ----------------------------------------------------- */

/* Bluetooth config -------------------------------------------------------- */


/* Bluetooth Intercome config -------------------------------------------------------- */


/* board config -------------------------------------------------------- */

/* Dut Test config -------------------------------------------------------- */



/* Audio config -------------------------------------------------------- */
#define AUDIO_MIC_GAIN					(8)	//0(-8dB)~19(30dB),step:2dB,level(4)=0dB
#define AUDIO_MIC_SAMPLE_RATE			(16000)


/* FM1505 config -------------------------------------------------------- */
#define SUPPORT_FM1505_DMS		//大约消耗1Mb Flash
#define FM1505_DEV_NAME		"FM1505"
#define FM1505_CHIP_POWER	NO_CONFIG_PORT
#define FM1505_CHIP_RESET	IO_PORTC_07
#define FM1505_SPI_CS		IO_PORTA_08


/* Other config -------------------------------------------------------- */


/* customer config -------------------------------------------------------- */
//#define SUPPORT_FAST_POWER_OFF_BUTTON	//快速关机功能


/* other config includes -------------------------------------------------------- */
#include "pin_config.h"
#include "customer_patch.h"

/* Build warning -------------------------------------------------------- */


#endif /*__CUSTOMER_H__*/
